package com.ruoyi.tools.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 个人工具管理对象 tool
 * 
 * @author ruoyi
 * @date 2023-03-04
 */
public class Tool extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    private String groupName;
    private String fileName;
    private long fileSize;
    private String fileType;
    private String oldFileName;

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getOldFileName() {
        return oldFileName;
    }

    public void setOldFileName(String oldFileName) {
        this.oldFileName = oldFileName;
    }

    /** 编号 */
    private Integer toolId;

    /** 使用人 */
    @Excel(name = "使用人")
    private Integer empId;

    /** 归还人 */
    @Excel(name = "归还人")
    private String returnedBy;

    /** 物品名称 */
    @Excel(name = "物品名称")
    private String itemName;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Integer toolCount;

    /** 员工名称 */
    @Excel(name = "员工名称")
    private String empName;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    /** 借用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowimgDate;

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnDate;

    /** 审核情况 */
    @Excel(name = "审核情况")
    private Integer audit;

    /** 版本号 */
    @Excel(name = "版本号")
    private Integer version;
    /** 图片 */
    @Excel(name = "图片")
    private String img;

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public void setToolId(Integer toolId)
    {
        this.toolId = toolId;
    }

    public Integer getToolId() 
    {
        return toolId;
    }
    public void setEmpId(Integer empId)
    {
        this.empId = empId;
    }

    public Integer getEmpId()
    {
        return empId;
    }
    public void setReturnedBy(String returnedBy) 
    {
        this.returnedBy = returnedBy;
    }

    public String getReturnedBy() 
    {
        return returnedBy;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setToolCount(Integer toolCount) 
    {
        this.toolCount = toolCount;
    }

    public Integer getToolCount() 
    {
        return toolCount;
    }
    public void setBorrowimgDate(Date borrowimgDate) 
    {
        this.borrowimgDate = borrowimgDate;
    }

    public Date getBorrowimgDate() 
    {
        return borrowimgDate;
    }
    public void setReturnDate(Date returnDate) 
    {
        this.returnDate = returnDate;
    }

    public Date getReturnDate() 
    {
        return returnDate;
    }
    public void setAudit(Integer audit) 
    {
        this.audit = audit;
    }

    public Integer getAudit() 
    {
        return audit;
    }
    public void setVersion(Integer version) 
    {
        this.version = version;
    }

    public Integer getVersion() 
    {
        return version;
    }

//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("toolId", getToolId())
//            .append("empId", getEmpId())
//            .append("returnedBy", getReturnedBy())
//            .append("itemName", getItemName())
//            .append("toolCount", getToolCount())
//            .append("borrowimgDate", getBorrowimgDate())
//            .append("returnDate", getReturnDate())
//            .append("audit", getAudit())
//            .append("version", getVersion())
//            .toString();
//    }

    @Override
    public String toString() {
        return "Tool{" +
                "groupName='" + groupName + '\'' +
                ", fileName='" + fileName + '\'' +
                ", fileSize=" + fileSize +
                ", fileType='" + fileType + '\'' +
                ", oldFileName='" + oldFileName + '\'' +
                ", toolId=" + toolId +
                ", empId=" + empId +
                ", returnedBy='" + returnedBy + '\'' +
                ", itemName='" + itemName + '\'' +
                ", toolCount=" + toolCount +
                ", empName='" + empName + '\'' +
                ", borrowimgDate=" + borrowimgDate +
                ", returnDate=" + returnDate +
                ", audit=" + audit +
                ", version=" + version +
                ", img='" + img + '\'' +
                '}';
    }
}
